package org.wms.minbearwcs.entity.DTO.agv.task;

import lombok.Data;
import org.wms.minbearwcs.entity.PO.agv.missionEnum.AgvMissionType;

import java.util.ArrayList;
import java.util.List;

@Data
public class AgvTaskSource {

    public AgvTaskSource(String taskId, AgvMissionType missionType,Integer priority, String wcsMissionId, String wcsMissionType, String wcsMissionStatus) {
        this.taskId = taskId;
        this.missionType = missionType;
        this.priority = priority;
        this.wcsMissionId = wcsMissionId;
        this.wcsMissionType = wcsMissionType;
        this.wcsMissionStatus = wcsMissionStatus;
    }

    public AgvTaskSource addAction(AgvActionSource actionSource) {
        actionList.add(actionSource);
        return this;
    }

    /**
     * agv任务号
     */
    private String taskId;
    /**
     * 任务类型
     */
    private AgvMissionType missionType;
    /**
     * 优先级  ，1-100,数值越高，优先级越高
     */
    private Integer priority;
    /**
     * WCS任务号
     */
    private String wcsMissionId;
    /**
     * wcs任务类型
     */
    private String wcsMissionType;
    /**
     * 所属wcs任务状态
     */
    private String wcsMissionStatus;

    private List<AgvActionSource> actionList = new ArrayList<>();
}
